<template>
    <div class="category">
    <h2>{{title}}分类</h2>
    <slot name="default"></slot>
    <hr>
    <slot name="footer"></slot>
  </div>
</template>

<script>
export default {
    name:"Child"
}
</script>


<style scoped>
.category {
  width: 200px;
  height: 300px;
  border: 1px solid #000;
}
.category h2 {
  background: skyblue;
}
</style>